package top.aicats.pattern.singleton.threadLocalSingleton;

public class ThreadLocalSingletonTest {
    public static void main(String[] args) {

        Thread thread = new Thread(new Runnable() {
            public void run() {
                ThreadLocalSingleton threadLocalSingleton = ThreadLocalSingleton.getInstance();
                System.out.println(threadLocalSingleton);
            }
        });
        thread.start();

        System.out.println(ThreadLocalSingleton.getInstance());
    }
}
